/**
 * @Auto generation code
 * 充值控制接口
 */
import request from '../common/request/request.js'

/**
 * 
 * path, params, loading
 * 用户充值记录 - GET
 */
export const getHistory = async ({// query params
		start ,   // 列表开始  
		limit  = param.default   // 列表结束  
	
}, loading) => {
	return await request.get('/customer/charge', {
		 start,  limit, 
	}, loading)
}


/**
 * 
 * path, params, body, loading
 * 创建一条新的充值 - POST
 */
export const createRechargeOrder = async ({// query params
		type  = param.default   // 充值类型  
	
}, loading) => {
	return await request.post('/customer/charge', {
		 type, 
	}, {
		
	}, loading)
}


/**
 * 
 * path, params, loading
 * 充值赠费策略查询 - GET
 */
export const getChargeFavor = async ({// query params
		type  = param.default   // 类型  
	
}, loading) => {
	return await request.get('/customer/charge/favor', {
		 type, 
	}, loading)
}

